package fun.easycode.webterminal.service;

import fun.easycode.webterminal.common.contract.PageDTO;
import fun.easycode.webterminal.common.contract.R;
import fun.easycode.webterminal.service.cmd.MachineBatchDeleteCmd;
import fun.easycode.webterminal.service.cmd.MachinePageQry;
import fun.easycode.webterminal.service.cmd.MachineSaveCmd;
import fun.easycode.webterminal.service.dto.MachineDTO;

public interface MachineService {

    R<MachineDTO> getById(String id);
    R<String> delete(String id);
    R<String> batchDelete(MachineBatchDeleteCmd cmd);
    R<String> save (MachineSaveCmd cmd);
    R<PageDTO<MachineDTO>> page(MachinePageQry cmd);
}
